# Contributor: Pranay Kanwar <warl0ck@metaeye.org>

pkgname=btscanner
pkgver=2.1
pkgrel=1
pkgdesc="Bluetooth device scanner."
url="http://www.pentest.co.uk"
depends=('bluez-libs' 'bluez-utils' 'libxml2' 'ncurses')
arch=(i686)
license=('GPL')
source=(http://www.pentest.co.uk/src/$pkgname-$pkgver.tar.bz2
       btscanner.patch)
md5sums=(587ec5847647d432eac1704b260af020
         8c198041c5ff4ed9ce4c069c5dacaff9)
build() {
  cd $startdir/src/$pkgname-$pkgver
  patch -p1 < ../btscanner.patch
  ./configure --prefix=/usr --sysconf=/etc/btscanner --datadir=/usr/share/btscanner
  make || return 1
  make DESTDIR=$startdir/pkg install
}
